// 常量的规范是名字大写
const TOKEN_KEY = 'hmmj-mobile-token'
// 保存
export const setToken = (token) => {
  localStorage.setItem(TOKEN_KEY, token)
}

// 获取
export const getToken = () => {
  return localStorage.getItem(TOKEN_KEY)
}

// 删除
export const removeToken = () => {
  localStorage.removeItem(TOKEN_KEY)
}
